package com.samuel.learning.design.pattern.singleton;

/**
 * 饿汉式
 * 默认的
 */
public class HungrySingleton {


    private static HungrySingleton instance = new HungrySingleton();
    private HungrySingleton() {

    }
    public static  HungrySingleton getInstance(){
        return instance;
    }
}
